import request from "@/utils/request";
import { AxiosPromise } from "axios";
import {ImportErrorDetailQuery, ImportVo} from "@/api/importErrorDetail/types";

/**
 * 平台分页数据
 *
 * @param queryParams
 */
export function getImportErrorDetailQueryPage(logId: number, queryParams: ImportErrorDetailQuery): AxiosPromise<PageResult<[]>> {
	return request({
		url: '/api/v1/importErrorDetail/page/' + logId,
		method: 'get',
		params: queryParams
	});
}

/**
 * 添加用户
 *
 * @param data
 */
export function pushOne(data) {
	return request({
		url: '/api/v1/importErrorDetail/pushOne',
		method: 'post',
		data: data
	});
}

export function rePush(ids: any) {
	return request({
		url: '/api/v1/importErrorDetail/rePush?ids='+ids,
		method: 'get',
	});
}

export function rePushAll(queryParams) {
	return request({
		url: '/api/v1/importErrorDetail/rePushAll',
		method: 'get',
		params: queryParams
	});
}

